package com.rrym.customer.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//import org.apache.rocketmq.spring.core.RocketMQTemplate;

/**
 * @Author xiao
 * @Description:
 * @Date 2020/8/25 7:57 下午
 */
@RestController
@RequestMapping("/send")
@Slf4j
public class SendMqController {

//    @Autowired
//    RocketMQTemplate rocketMQTemplate;

    @GetMapping
    public String send(){
//        rocketMQTemplate.convertAndSend("test-topic","傻逼");
        log.info("MQ发送成功");
        return "MQ发送成功";
    }

}
